package name.flurl.android.tt_news4android;

import name.flurl.android.tt_news4android.Tt_news4AndroidApplication.CONSTANTS;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;

public class PreferencesActivity extends PreferenceActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.preferences);

		// hide the sites preference if there a predefined sites
		if (CONSTANTS.PREDEFINED_SITES.length != 0) {
			Preference pref = getPreferenceScreen().findPreference(
					"siteUrlsPrefCat");
			getPreferenceScreen().removePreference(pref);
		}
	}

}